package com.yanqu.road.dao.dbV2.serializer;

import java.lang.reflect.Field;

public class DString extends Serializer<String>{
    @Override
    public String deserialize(Object object, Field field) {
        if (object instanceof String) {
            return (String) object;
        }
        return this.defaultValue();
    }

    @Override
    public Object serialize(String s) {
        return s;
    }

    @Override
    public String SqlType() {
        return "VARCHAR(128)";
    }

    @Override
    public String defaultValue() {
        return "";
    }
}
